package br.com.site.validation.Annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;



@Retention(value=RetentionPolicy.RUNTIME)      
@Target(value=ElementType.FIELD)               
public @interface Validar {
	
	ValidationType type() default ValidationType.STRING;
	
	String nomecampo() default "";
	
	public enum ValidationType {

		INTEIRO,

		DECIMAL,
		
		STRING,
		
		EMAIL,
		
		CPF,
		
		Data,
		
		URL;
		
	}
	
} 
